Socket
Socket
Sign inDemoInstall

@bitgo/utxo-lib

Package Overview
Dependencies
Maintainers
6
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo/utxo-lib

Client-side Bitcoin JavaScript library


Version published
Weekly downloads
11K
decreased by-17.79%
Maintainers
6
Weekly downloads
 
Created
Source

BitGo UTXO library

This library is a wrapper around bitcoinjs-lib adding altcoin support.

Features

  • Multicoin support: Configurable behaviour based on network objects.
  • Backed by BitGo

Installation

# using npm
npm install @bitgo/utxo-lib

# using yarn
yarn add @bitgo/utxo-lib

Setup

JavaScript (ESM)

import * as utxolib from '@bitgo/utxo-lib'

NodeJS (CJS)

const utxolib = require('@bitgo/utxo-lib')

Usage

Support for parsing and building altcoin transactions is provided by the following methods

utxolib.bitgo.createTransactionFromBuffer(buffer, network): UtxoTransaction
// (similarly `createTransactionFromHex(string, network)`)

utxolib.bitgo.createTransactionBuilderForNetwork(network): UtxoTransactionBuilder

utxolib.bitgo.createTransactionBuilderFromTransaction(tx): UtxoTransactionBuilder

The UtxoTransaction(Builder) classes have the same interface as the Transaction type in bitcoinjs-lib .

Supported coins

NetworkMainnetTestnet
Bitcoinutxolib.networks.bitcoinutxolib.networks.testnet
Bitcoin Cashutxolib.networks.bitcoincashutxolib.networks.bitcoincashTestnet
Bitcoin Goldutxolib.networks.bitcoingoldutxolib.networks.bitcoingoldTestnet
Bitcoin SV (Satoshi Vision)utxolib.networks.bitcoinsvutxolib.networks.bitcoinsvTestnet
Dashutxolib.networks.dashutxolib.networks.dash
Litecoinutxolib.networks.litecoinutxolib.networks.litecoinTest
Zcashutxolib.networks.zcashutxolib.networks.zcashTest

Bitcoin SV no longer supports sending funds to BitGo wallets. Existing customers with Bitcoin SV in BitGo wallets will still be able to access and sweep funds to an external Bitcoin SV wallet.

Keywords

FAQs

Package last updated on 19 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc